package com.gwtprocessingjs.client;

import com.google.gwt.core.client.EntryPoint;
import com.google.gwt.user.client.ui.FlowPanel;
import com.google.gwt.user.client.ui.Label;
import com.google.gwt.user.client.ui.RootPanel;

/**
 * This class shows a very simple example of rendering a
 * Processing script using a canvas element. As you can see,
 * there's actually not really any GWT code to write!
 */
public class ProcessingPde implements EntryPoint {
	
	// UI Elements.
	private final FlowPanel back = new FlowPanel();
	
	@Override
	public void onModuleLoad() {
		back.add(new Label("Check it out, we're rendering a .pde script in a web page!"));
		RootPanel.get("gwt").add(back);
	}
}
